package com.dao;

import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.po.UserPO;
@Repository
public class LoginDao {
	@Autowired 
	private SqlSessionTemplate sqlTemplate;
	/**
	 * 验证登录信息
	 * @param map
	 * @return
	 */
	public UserPO findUserInfo(Map<String, String> map) {
		return sqlTemplate.selectOne("login.findUserInfo", map);
	}

}
